package com.object_.oriented_.polymorphic;

public class Cat extends Animal {

    public void eat() {
        System.out.println("猫 吃鱼");
    }

    public void work() {
        System.out.println("猫 抓老鼠");
    }

    /*public void age(){
        System.out.println("猫 3岁");
    }*/

    public int nums() {
        return 10;
    }
}
